Skip to content

fix(aggregator): markResult caps never split a surrogate pair (#7711) - #7713

Merged
developing-today[bot] merged 1 commit into
mainfrom
creator-b/7711-markresult-surrogate
Nov 8, 2026
Merged

developing-today[bot] merged 1 commit into
mainfrom
creator-b/7711-markresult-surrogate

Conversation

@developing-today

@developing-today developing-today Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #7711.

markResultTransition capped appliedByRun (200) and resultNote (2,000) with raw slice, so an astral character straddling either cap was stored as a lone high surrogate and persisted — the #7694 defect class on the action-result path, which the #7698 fix (cleanText only) did not reach.

  • Extract the surrogate-safe cap from cleanText into a shared capUnits helper; cleanText uses it unchanged.
  • markResultTransition now caps both result fields through capUnits — straddling pair dropped whole, cap semantics otherwise identical (no trim/empty changes).
  • Regression test in actions.test.ts: straddle at both the 200 and 2,000 caps stored whole-or-dropped, exact-fit pair kept whole.

Verification (laptop, branch bcfcd14365):


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

markResultTransition capped appliedByRun/resultNote with raw slice,
storing a lone high surrogate whenever an astral character straddled
the 200 / 2000 caps — the #7694 defect class on the result path.
Route both caps through the shared capUnits guard extracted from
cleanText, and add regression tests (straddle at both caps dropped
whole, exact-fit pair kept whole; new test fails pre-fix).
@developing-today
developing-today Bot requested review from a team and dezren39 as code owners November 8, 2026 13:50
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c498ac5c-53f2-4292-862a-fa86b6e49851

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today developing-today Bot added kind/bug Something isn't working (prefixed form of the classic bug label) app/aggregator Package/app: aggregator (pm-stack in this repo) source/creator Filed by the new-issue-creator job priority/normal Ordinary priority (the default) labels Nov 8, 2026
@developing-today
developing-today Bot merged commit 9571572 into main Nov 8, 2026
3 of 5 checks passed
@developing-today
developing-today Bot deleted the creator-b/7711-markresult-surrogate branch November 8, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app/aggregator Package/app: aggregator (pm-stack in this repo) kind/bug Something isn't working (prefixed form of the classic bug label) priority/normal Ordinary priority (the default) source/creator Filed by the new-issue-creator job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aggregator(actions): markResult caps split surrogate pairs — appliedByRun/resultNote stored with a lone surrogate (residual of #7694)

0 participants